home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ MSDOSSYS 3.xpl < prev    next >
Text File  |  2001-05-03  |  2KB  |  77 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="3"
  4. "UIPATH 1"="Startup/Shutdown\Startup\Windows 9x/ME\30) ScanDisk"
  5. "NAME"="ScanDisk Options (Win9x)"
  6. "VERSION"="1.32"
  7. "OSVERSION"="10100"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Never start ScanDisk"
  10. "TEXT 2"="Start ScanDisk after displaying a warning"
  11. "TEXT 3"="Start ScanDisk without warning"
  12. "DESCRIPTION 1"="If Windows detects that your PC has crashed, it starts ScanDisk while booting to correct any HD failures."
  13. "DESCRIPTION 2"="Only set this option to "Never" if you are really sure what YOU ARE DOING! (ADVANCED USERS ONLY!)."
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"="Thanks to Perez, Anthony <rivernet@digitalme.com> for the typo fix."
  18.  
  19.  
  20. '0 => never
  21. '1 => w/ warning
  22. '2 => no warning
  23.  
  24. sF="C:\MSDOS.SYS"
  25. sO="OPTIONS"
  26.  
  27. Sub Plugin_Initialize 
  28.   Call FileSetAttribute(sf,"S-")
  29.   Call FileSetAttribute(sf,"R-")
  30.   Call FileSetAttribute(sf,"H-")
  31.  
  32.   i=IniReadValue(sf,so,"AutoScan")
  33.   'If IsEmpty(i) then
  34.   ' 'Win 95 A don't like this parameter....
  35.   ' Disable
  36.   'else
  37.    if i=0 then 
  38.     SetUIElement 1,true
  39.    else
  40.     if i=1 then
  41.      SetUIElement 2,true
  42.     else
  43.      SetUIElement 3,true
  44.     end if
  45.    end if
  46.   'end if
  47. End Sub
  48.  
  49. Sub Plugin_CheckData(ElementIndex)
  50. End Sub
  51.  
  52. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  53.  b=GetUIElement(1)
  54.  if b=true then
  55.   Call IniWriteValue(sf,so,"AutoScan",0)
  56.  else 
  57.   b=GetUIElement(2)
  58.   if b=true then
  59.    Call IniWriteValue(sf,so,"AutoScan",1)
  60.   else
  61.    Call IniWriteValue(sf,so,"AutoScan",2)
  62.   end if
  63.  end if
  64.  
  65.  Restart
  66. End Sub
  67.  
  68.  
  69. Sub Plugin_Terminate 
  70.  Call FileSetAttribute("C:\MSDOS.SYS","S+")
  71.  Call FileSetAttribute("C:\MSDOS.SYS","R+")
  72.  Call FileSetAttribute("C:\MSDOS.SYS","H+")
  73. End Sub
  74.  
  75.  
  76.  
  77.